package com.nervenets.web.controller.handler.admin;

import com.nervenets.web.annotation.NeedValidation;
import com.nervenets.web.controller.handler.common.UserPagingParams;
import com.nervenets.web.enumeration.Role;
import com.nervenets.web.validation.Type;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * Created by Joe on 2018/1/24.
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class UserListParams extends UserPagingParams {
    @NeedValidation(type = Type.EMPTY, description = "用户权限，不填的时候不筛选")
    private Role role;
    @NeedValidation(type = Type.NUMBER, description = "认证筛选，0全部，1认证失败，2认证中，3认证成功")
    private int auth;//
    @NeedValidation(type = Type.NUMBER, description = "是否是特殊人类，0全部，1是，2否")
    private int special;//
    @NeedValidation(type = Type.EMPTY, description = "用户昵称，不填的时候不筛选")
    private String keyword;
    @NeedValidation(type = Type.NUMBER, description = "邀请人ID，不传不筛选")
    private long inviteUserId;
}
